#ifndef TESTBASE_H
#define TESTBASE_H

#include "apue.h"


void GetMemory(char** p, int num)
{
    *p = (char*) malloc (sizeof(char) * num);
}

void TestBase()
{
    char* p = NULL;
    GetMemory(&p, 3);
//    char p2[2];

    char* p2 = new char[100];
    strcpy(p, "Hello World");
    printf("%s\n", p);
}
#endif
